import request from '@/utils/request'

/**
 * 获取负责人列表
 *
 */
export const getEmployeesSimleApi = () => {
  return request({
    url: '/sys/user/simple'
  })
}
// 获取员工列表
export function getEmployeesSimleList(params) {
  return request({
    url: '/sys/user',
    params
  })
}
// 获取删除接口
export function delEmployeesSimleApi(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}

// 获取新增接口

export function addEmployeesSimleApi(data) {
  return request({
    url: `/sys/user`,
    method: 'post',
    data
  })
}

// 批量上传员工

// export function upEmployeesSimleApiList(list) {
//   return request({
//     url: `/sys/user/batch`,
//     method: 'post',
//     data: list
//   })
// }
export function upEmployeesSimleApiList(data) {
  return request({
    url: `/sys/user/batch`,
    method: 'post',
    data
  })
}
// 修改接口
export function editEmployeesSimleApi(data) {
  return request({
    url: `/sys/user/${data.id}`,
    method: 'put',
    data
  })
}
